<?php
return array(
	'import' => array(
		APP_DIR . '/components',
		APP_DIR . '/models'
	),

	'db' => array(
		'dsn' => 'mysql:host=localhost;dbname=vivo',
		'username' => 'root',
		'password' => '123456',
		'charset' => 'UTF8',
		'prefix' => 'vo_',
		'caseFolding' => PDO::CASE_NATURAL
	),
	
	'view' => array(
		'classPath' => FRAMEWORK_DIR . '/views/CView.php', //模板引擎类路径.
		'skinsDir' => APP_DIR . '/views', //所有模板皮肤的根目录.
		'skinName' => 'default', //当前使用的模板皮肤名.
		'compileDir' => APP_DIR . '/runtime/compile', //编译后文件存放目录.
		'leftDelimiter' => '<!--{',
		'rightDelimiter' => '}-->',
		'templateSuffix' => '.phtml', //模板文件后缀名.
		'noView' => false, //控制器结尾自动显示模板.
		'language' => 'zh_cn', //用户自定义的语言.
		'languagesDir' => FRAMEWORK_DIR . '/views', //所有语言包所在目录.
		'charset' => 'UTF-8', //页面字符编码.
	),
	
	'controller' => array(
		'urlModel' => '1', //单入口方式. REWRITE = 3, PATHINFO = 2, NORMAL = 1.
		'controllerKey' => 'Controller', //控制器默认后缀.
		'actionKey' => 'Action', //方法名默认后缀.
		'defaultController' => 'index', //如果控制器名为空，默认调用的控制器名.
		'defaultAction' => 'index', //如果方法名为空，默认调用的方法名.
		'controllerDir' => APP_DIR . '/controllers', //控制器所在的目录.
        'errorAction' => 'index/error',
	),
	
	'model' => array(
		'modelKey' => 'Model', //Model类后缀名.
		'modelDir' => APP_DIR . '/models' //Model目录.
	),
	
	'config' => require 'config.php',
);
 